package date1124;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import com.lu.jdog.util.Resource;

import date1124.service.PersonI;

public class BeanTest {
	private static ApplicationContext app;

	public static void main(String[] args) {
		// 获取 chinese 实例
		String beadPath = Resource.getAssertPath(BeanTest.class, "beans.xml");
		
		app = new ClassPathXmlApplicationContext(beadPath);

		PersonI p1 = app.getBean("chinese", PersonI.class);
		// 调用 useAxe()方法
		p1.useAxe();
		

	}
}
